//
//  MoiveDramaDeriesView.h
//  iAccountBook
//
//  Created by 侯伟 on 2021/8/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class RVideoUrlGroup;

@protocol MoiveDramaDeriesDelegate <NSObject>

/// 播放
/// @param urlStr -
/// @param indexPath -
- (void)playUrl:(NSString*)urlStr atIndexPath:(NSIndexPath*)indexPath;


/// 选集
/// @param purpose 1 播放 2缓存
/// @param index 视频分组位置
- (void)choiseDramaForPurpose:(NSInteger)purpose atIndex:(NSInteger)index;

@end


@interface MoiveDramaDeriesView : MyLinearLayout

/// 回调
@property(nonatomic,weak)id<MoiveDramaDeriesDelegate> delegate;

/// 数据
@property(nonatomic,strong)RVideoUrlGroup* urlGroup;

/// 选择了第几集
/// @param index -
- (void)playAt:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
